<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">客服中心</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      安心签创建合同记录
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light">
      <p>
        合同模板ID: <input id="filter" type="text" ng-model="anxinData.Template" class="form-control input-sm w-sm inline m-r">
        电话: <input id="filter" type="text" ng-model="anxinData.Mobile" class="form-control input-sm w-sm inline m-r">
        产品编号: <input id="filter" type="text" ng-model="anxinData.ProductCode" class="form-control input-sm w-sm inline m-r">
        签署状态: <select class="form-control input-sm w-sm inline m-r" ng-model="anxinData.SignStatus" name="">
              <option value="-1">全部</option>   
              <option value="1">成功</option>
              <option value="0">异常</option>
            </select>
        <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="queryUser()">查询</button>
        <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>
      </p>         
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="width:10%">合同模板ID</th>
            <th style="width:12%">安心签userID</th>
            <th style="width:5%">电话</th>
            <th style="width:8%">授权时间</th>
            <th style="width:8%">产品编号</th>
            <th style="width:8%">签署状态</th>
            <th style="width:15%">安心签合同编号</th>
            <th style="width:8%">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="UserList==''"><td colspan="9">当前无任何数据</td></tr>
          <tr ng-repeat="obj in UserList">
            <td ng-bind="obj.Template"></td>
            <td ng-bind="obj.SignUserId"></td>
            <td ng-bind="obj.Mobile"></td>
            <td ng-bind="obj.SignTime|date:'yyyy-MM-dd HH:mm:ss'"></td>
            <td ng-bind="obj.ProductCode"></td>
            <td ng-bind="obj.SignStatus?'成功':'异常'"></td>
            <td ng-bind="obj.SignContractCode"></td>
            <td><button class="btn m-b-xs btn-sm btn-info" ng-if="!obj.SignStatus" ng-click="editstatus(obj.Id)">修改授权状态</button></td>
            <td><button class="btn m-b-xs btn-sm btn-info" ng-if="!obj.SignStatus" ng-click="retrySignContract(obj.Id)">重试签署</button></td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{anxinData.Index}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="UserListCount+'条数据'"></span></span>
    
  </div>
